package com.base.interview.devtest.repository;

import com.base.interview.devtest.entity.PostEntity;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface PostRepository extends PagingAndSortingRepository<PostEntity, Long>, JpaSpecificationExecutor<PostEntity> {
    List<PostEntity> getByUserId(Long userId);
}
